package com.naton.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @time: 2022/1/20
 * @author: lifuling
 * @version: v1.0
 * @file_desc: 时间工具类
 */
public class TimeUtils {

    public static String format_01 = "yyyy-MM-dd HH:mm:ss";

    public static String longToString(long time , String stringDataFormat){
        SimpleDateFormat format = new SimpleDateFormat(stringDataFormat);
        return format.format(new Date(time));
    }

}
